﻿#ifndef UDPCODECBASE_H
#define UDPCODECBASE_H

#include "DataPackage_UdpCodec.h"
class UdpCodecBase
{
public:
  enum DataPackgeType
  {//0x00-0x0f
    HeartBeat=0,
    SensorData,
    TurnTable,
    MCUCtrl,
    Register,
    Test,
    Size
  };
protected:
  explicit UdpCodecBase(){}
public:
  virtual ~UdpCodecBase(){}
public:
  virtual DataPackage_UdpCodec* decode(DataPackage_UdpCodec* dataPackageInfo)
  {
    (void)dataPackageInfo;
    return nullptr;
  }
};

#endif // UDPCODECBASE_H
